Update output to match latest cargo build
authorEduardo Bautista <me@eduardobautista.com>
Sun, 7 Sep 2014 04:39:18 +0000 (23:39 -0500)
committerEduardo Bautista <me@eduardobautista.com>
Sun, 7 Sep 2014 04:39:18 +0000 (23:39 -0500)
src/doc/source/guide.md
src/doc/source/index.md
src/doc/source/manifest.md
src/doc/source/native-build.md

index 13d99f54cde2731c4a3e56cf7098e581b729c754..3fa8edcc831caa44e95efcad19723961c3a62ec6 100644 (file)
@@ -67,7 +67,7 @@ Here's what's in `src/main.rs`:
 
 ```rs
 fn main() {
-    println!("Hello world!")
+    println!("Hello, world!")
 }
 ```
 
@@ -81,17 +81,17 @@ And then run it:
 
 ```shell
 $ ./target/hello_world
-Hello world!
+Hello, world!
 ```
 
 We can also use `cargo run` to compile and then run it, all in one step:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo run
 <span style="font-weight: bold"
-class="s1">   Fresh</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
+class="s1">     Fresh</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold"
 class="s1">   Running</span> `target/hello_world`
-Hello world!</code></pre>
+Hello, world!</code></pre>
 
 You'll now notice a new file, `Cargo.lock`. It contains information about our
 dependencies. Since we don't have any yet, it's not very interesting.
@@ -123,7 +123,7 @@ To depend on a library, add it to your `Cargo.toml`.
 ```toml
 [package]
 
-name = "hello-world"
+name = "hello_world"
 version = "0.0.1"
 authors = ["Your Name <you@example.com>"]
 
@@ -159,7 +159,7 @@ Compile it:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo run
 <span style="font-weight: bold" class="s1">   Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
-<span style="font-weight: bold" class="s1">   Compiling</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
+<span style="font-weight: bold" class="s1">   Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold" class="s1">     Running</span> `target/hello_world`
 Converting RGB to HSV!
 HSV: HSV { h: 0, s: 1, v: 1 }</code></pre>
@@ -377,7 +377,7 @@ To run your tests, just run `cargo test`:
 <span style="font-weight: bold"
 class="s1">   Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
 <span style="font-weight: bold"
-class="s1">   Compiling</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
+class="s1">   Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold"
 class="s1">     Running</span> target/test/hello_world-9c2b65bbb79eabce
 
index c599fef2160e16c99027a1d8740a09c11e1a8f5d..ecc77d56373e70671cc86bfd9864621661f5a3ac 100644 (file)
@@ -60,7 +60,7 @@ Here's what's in `src/main.rs`:
 
 ```rs
 fn main() {
-    println!("Hello world!")
+    println!("Hello, world!")
 }
 ```
 
@@ -74,17 +74,17 @@ And then run it:
 
 ```shell
 $ ./target/hello_world
-Hello world!
+Hello, world!
 ```
 
 We can also use `cargo run` to compile and then run it, all in one step:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo run
 <span style="font-weight: bold"
-class="s1">   Fresh</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
+class="s1">     Fresh</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold"
 class="s1">   Running</span> `target/hello_world`
-Hello world!</code></pre>
+Hello, world!</code></pre>
 
 # Going Further
 
index 10ae987c69a7caf4abd7d754d19a634967443663..0480aeaec5be427bf7c76433742bbb0483a203cd 100644 (file)
@@ -8,8 +8,8 @@ The first section in a `Cargo.toml` is `[package]`.
 
 ```toml
 [package]
-name = "hello-world" # the name of the package
-version = "1.0.0"    # the current version, obeying semver
+name = "hello_world" # the name of the package
+version = "0.0.1"    # the current version, obeying semver
 authors = [ "you@example.com" ]
 ```
 
index 8f3739ed95daa9b22311beff2f3f9e49fd560e32..03bda2b0142127c42c9cba9c24921e29a66c1cb5 100644 (file)
@@ -14,7 +14,7 @@ configuration option.
 [package]
 
 name = "hello-world-from-c"
-version = "0.1.0"
+version = "0.0.1"
 authors = [ "you@example.com" ]
 build = "make"
 ```
@@ -90,7 +90,7 @@ program.
 [package]
 
 name = "hello-world-from-c"
-version = "0.1.0"
+version = "0.0.1"
 authors = [ "you@example.com" ]
 build = "make -C build"
 ```